package pro.cherish.knowledgeumldesignpattern.designPattern.com.cherish.mediator;

public class Finacial implements Department {
//    持有中介者的引用
    private Mediator m;

    public Finacial(Mediator m) {
        super();
        this.m = m;
        m.register("finacial",this);
    }

    @Override
    public void selfAction() {
        System.out.println("数钱");
    }

    @Override
    public void outAction() {
        System.out.println("汇报工作：没钱了，钱太多了，怎么花");
    }
}
